package com.gimi.cloud.jimi.manage.consumer.service.sys;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by shazhiwei on 2017/12/14.
 */
public interface MasterService {
    /** 添加用户 */
    public Response addMaster(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /** 编辑用户 */
    public Response editMaster(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /** 删除用户 */
    public Response deleteMaster(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /** 用户登录 */
    public Response login(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /** 用户退出（注销） */
    public Response loginOut(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;
    /** 用户列表 */
    public Response getMasterList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /** 单个用户 */
    public Response getMasterSingle(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

}
